# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        博智科技  
# Name:         demo2332
# Description:  数组操作
# Author:       yzl
# Date:         2019-03-11
#-------------------------------------------------------------------------------

from numpy import *

a = array([[1,2,3],[4,5,6],[7,8,9]])

print(a[0,0])

print("a[0,1]={},a[0,2]={}".format(a[0,1],a[0,2]))

print(a[0:1])

print(a[0:1][0])

print(a[0:2])

b = a[0:]
print(b)

print(a[-3,-1])



